home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 466 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  651 b 

  1. From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  2. Date: Mon, 6 Sep 93 10:45:09 +0200
  3. Message-Id: <9309060845.AA20726@issan.informatik.uni-dortmund.de>
  4. To: mint@atari.archive.umich.edu
  5. Subject: Bug in MiNT 1.09
  6.  
  7. There is a serious bug in kmalloc: when allocating a new arena for
  8. nalloc, the size passed to nalloc_add_arena is too big!
  9.  
  10. --- orig/util.c    Tue Aug 17 21:23:28 1993
  11. +++ util.c    Sat Sep  4 22:06:36 1993
  12. @@ -156,7 +156,7 @@
  13.          lp = (long *)m->loc;
  14.          *lp++ = (long)KMAGIC;
  15.          *lp++ = (long)m;
  16. -        nalloc_arena_add((void *)lp,KERMEM_SIZE);
  17. +        nalloc_arena_add((void *)lp,KERMEM_SIZE - 2*sizeof(long));
  18.          goto tryagain;
  19.          }
  20.      }
  21.